package com.learner.ucenter.service;

import com.learner.pojo.user.vo.SimpleUser;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
* @author ice2020x
* @Date: 2023/2/26
* @Description: 计算登录时间
**/
@Service
public interface OnlineUserService {
    
    void addClientIdToSimpleUser(String clientId, SimpleUser simpleUser);
    
    Set<Object> getOnlineUidSet();
    
    SimpleUser getSimpleUserByClientId(String clientId);
    
    void removeClientAndUidInSet(String clientId, String uid);
    
    int countOnlineUser();
    
    boolean checkCurUserIsOnline(String uid);
}